package rest.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import rest.service.RunService;

/**
 * Created by liuzesen on 16/1/15.
 */

@RestController
public class RunController
{
    @Autowired
    RunService runService;

    @RequestMapping("/run")
    public String runScript()
    {
        return runService.runScript();
    }
}
